<?php

$result = array();
$items = array();

for ($i=1;$i<=12;$i++) {
    $row = array('id'=>$i,'monthname'=>date("F", mktime(0, 0, 0, $i, 10)));
    array_push($items, $row);
}

$result = $items;
echo json_encode($result);

?>